<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>迭代数组中元素</title>
</head>
<body>
   <script>
        var arrs = ['a','b','c','d'];

        let len = arrs.length;
        for(var i = 0; i<len; i++){
            console.log(arrs[i]);
        }
   </script>
    
</body>
</html>